package com.blockchain.securewallet.activities;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageButton;
import android.widget.TextView;

import com.blockchain.securewallet.R;
import com.blockchain.securewallet.adapter.TransactionRecoderAdapter;
import com.blockchain.securewallet.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Chain-Cloud on 2018/5/15.
 */

public class TransationRecoderActivity extends BaseActivity {


    @BindView(R.id.btn_back)
    ImageButton btnBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.rcv_transation)
    RecyclerView rcvTransation;

    private TransactionRecoderAdapter transactionRecoderAdapter;


    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_transationrecorder);
        ButterKnife.bind(this);

        tvTitle.setText("发送记录");
    }

    @Override
    protected void onResume() {
        super.onResume();

        transactionRecoderAdapter=new TransactionRecoderAdapter(this,null);
        rcvTransation.setLayoutManager(new LinearLayoutManager(this));
        rcvTransation.setAdapter(transactionRecoderAdapter);
//        rcvTransation
    }

    @OnClick(R.id.btn_back)
    void back(){
        finish();
    }
}
